﻿// <copyright file="PrintWriter.cs" company="Joe Chung">
// Copyright © 2008 by Joe Chung.
// </copyright>
namespace NScheme
{
    using System;

    public class PrintWriter
    {
        System.IO.TextWriter outp;

        public PrintWriter(System.IO.TextWriter outp)
        {
            this.outp = outp;
        }

        public PrintWriter(System.IO.TextWriter outp, bool unusedFlag)
            : this(outp)
        {
        }

        public void close()
        {
            this.outp.Close();
        }

        public void flush()
        {
            this.outp.Flush();
        }

        public void print(object x)
        {
            this.outp.Write(x);
        }

        public void println()
        {
            this.outp.WriteLine();
        }

        public void println(object x)
        {
            this.outp.WriteLine(x);
        }
    }
}